#include "lockedsemaphore.h"

LockedSemaphore::LockedSemaphore(int n) :
    QSemaphore( n )
{

}

void LockedSemaphore::lockedRelease()
{
    rwLock.lockForWrite();
    this->release();
    rwLock.unlock();
}


